import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'

// 引入路由导航首位
import '@/permission'
// 引入全局样式
import '@/assets/css/global.css'
import '@/assets/css/element.less'

// 抽离注册全局组件
// import '@/components'
// 通过插件的方式注册全局组件
import components from '@/components'
import * as echarts from 'echarts'

Vue.use(components)

Vue.use(ElementUI)
Vue.config.productionTip = false

// 打印出当前的环境变量
console.log(process.env, 'env')

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
